package net.huashitong.ssydt.provider.exam.service;


import net.huashitong.ssydt.exam.entity.SsExamTestQuestion;
import net.huashitong.ssydt.provider.exam.mapper.SsExamTestQuestionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.08.29
 */
@Service
@Transactional
public class SsExamTestQuestionServiceImpl implements SsExamTestQuestionService {

    private SsExamTestQuestionMapper mapper;

    @Autowired
    public SsExamTestQuestionServiceImpl(SsExamTestQuestionMapper mapper) {
        this.mapper = mapper;
    }

    @Override
    public List<SsExamTestQuestion> queryByRecordId(Long recordId) {
        return mapper.queryByRecordId(recordId);
    }

    @Override
    public void insertSelective(SsExamTestQuestion testQuestion) {
        mapper.insertSelective(testQuestion);
    }

    @Override
    public SsExamTestQuestion getById(Long id) {
        return mapper.selectByPrimaryKey(id);
    }

    @Override
    public void updateByPrimaryKeySelective(SsExamTestQuestion ssExamTestQuestion) {
        mapper.updateByPrimaryKeySelective(ssExamTestQuestion);
    }
}
